# 导包
import unittest

from HTMLTestRunner_PY3 import HTMLTestRunner
import app

from script.test01_login import TestLoginAPI
from script.test02Login import TestLOGIN02
# 组装测试套件
siute = unittest.TestSuite()
siute.addTest(unittest.makeSuite(TestLoginAPI))
siute.addTest(unittest.makeSuite(TestLOGIN02))
# 指定报告和路径
report = app.LEQ_OS + "/report/report.html"

# 打开文件流
with open(report,"wb")as f:
#     创建runner
     runner=HTMLTestRunner(f,title="P2P0613")
#       运行siute
     runner.run(siute)